home *** CD-ROM | disk | FTP | other *** search
Wrap
INI File | 1995-06-08 | 10.0 KB | 269 lines
DefineVariables ;; Global variables for this installation. Number [ReturnVal2] := 1 Number [ReturnVal1] Text [I] ;; Variable used for Install directory Text [W] ;; Variable used for Windows directory Text [WS] ;; Variable used for Windows\system directory TextArray [taBackUpName] ;; Variable used for in use files TextArray [taBackUpName] ;; Variable used for in use files Text [tInuseLine] ;; Variable used to write inuse file to INUSE.BAT Number [nCounter] ;; Variable used as a counter for While loop Number [nInUse] ;; Variable which indicates number of in use files EndDefineVariables Procedure SetupDisplay ;;15 SetCustomControls Off SetDefaultBitMap Off SetBackgroundColor 0 0 255 0 0 255 TopLeftToBottomRight SetShadowAttrTo BlackOnLightGray SetScreenAttrTo BlackOnLightGray SetPopupAttrTo BlackOnLightGray SetAttentionAttrTo BlackOnLightGray SetTopLineTo Mission 9 Installer ShowWindow Maximized EndProcedure Procedure Install_Files ;;30 SetInstallModeTo Install DetermineInstallationDrive ShowDrivesWithSpace DetermineInstallationDirectory InstallationDrive:\M9 SetReadOnlyInquiry off CopyFiles from [InstallFromDirectory]\system to [InstallationDirectory] M9.exe *.ico EndCopyFiles CreateDirectoryIfNecessary [InstallationDirectory]\oldsys If FileExists [WindowsSystemDirectory]\chklist.ms CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys chklist.ms EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\cmdialog.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys cmdialog.vbx EndCopyFiles EndIf ;;50 If FileExists [WindowsSystemDirectory]\grid.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys grid.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\imk.dll CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys imk.dll EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\knife.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys knife.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\kniferun.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys kniferun.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\mkdisply.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys mkdisply.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\mkimk.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys mkimk.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\mksprite.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys mksprite.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\mktext.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys mktext.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\mktools.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys mktools.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\msole2.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys msole2.vbx EndCopyFiles EndIf ;;100 If FileExists [WindowsSystemDirectory]\threed.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys threed.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\vplay.vbx CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys vplay.vbx EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\vbrun300.dll CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys vbrun300.dll EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\zwipes.dll CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys zwipes.dll EndCopyFiles EndIf If FileExists [WindowsSystemDirectory]\zwnd.dll CopyFiles from [WindowsSystemDirectory] to [InstallationDirectory]\oldsys zwnd.dll EndCopyFiles EndIf CopyFiles from [InstallFromDirectory]\system to [WindowsSystemDirectory] *.vbx *.dll EndCopyFiles CreateFile [InstallationDirectory]\M9.INI ModifyTextFile [InstallationDirectory]\M9.INI InsertAtLine 1 [InstallFromDrive]:\ InsertAtLine 2 [InstallFromDrive]:\ EndModifyTextFile DeleteFiles ;;150 m9.0* EndDeleteFiles ModifyTextFile [WindowsDirectory]\WIN.INI InsertAtLine End [AAPLAY Animation] InsertAtLine End FullScreen = AAVGA.DLL EndModifyTextFile ProgramManagerDDE CreateGroup (Mission 9) AddItem([InstallationDirectory]\m9.exe,Mission 9 Beta, [InstallationDirectory]\mis9.ico) EndProgramManagerDDE If FileExists [WindowsSystemDirectory]\aaplay.dll Else DialogBox 210 102 Returns [Number1] BlackOnLightGray UseHeader "Install Autodesk Animator Player" SysMenu ;; Font "Helv" 8 StaticText @xy(8,7) 205 19 "Autodesk Animator Player must be installed for Mission 9 to work properly." StaticText @xy(8,33) 205 13 "The Autodesk Animator installer will now run automatically." StaticText @xy(8,52) 205 34 "BE SURE TO SELECT THE OPTION TO INSTALL THE MCI ANMATION DRIVER." PushButton OKbtn @xy(76,78) 69 15 "OK" 100 EndDialogBox Run [InstallFromDirectory]\aaplay\aasetup.exe EndIf If FileExists [WindowsSystemDirectory]\mciavi.drv Else DialogBox 225 181 Returns [Number1] BlackOnLightGray UseHeader "What this installer has done." SysMenu ;; Font "Helv" 8 StaticText @xy(8,7) 203 23 "This installer has copied the application M9.EXE to your hard drive into the directory M9 or an alternative of your choice." StaticText @xy(8,30) 203 23 "It has created a file named M9.INI in the same directory." StaticText @xy(8,103) 203 11 "The following has been added to the WIN.INI file:" StaticText @xy(24,114) 203 11 "[AAPLAY Animation]" StaticText @xy(8,44) 203 18 "It has copied a number of files to the Windows/System" StaticText @xy(8,52) 203 18 "directory. If earlier versions of those files existed the earlier" StaticText @xy(8,60) 203 18 "versions have been copied to the directory M9/OLDSYS." StaticText @xy(8,78) 203 22 "A Program Manager group entitled Mission 9 has been created with an icon for the Mission 9 application." StaticText @xy(24,126) 203 11 "FullScreen=AAVGA.DLL" StaticText @xy(8,140) 203 11 "Video for Windows 1.1 will now be installed." PushButton OKbtn @xy(72,160) 69 15 "OK" 100 EndDialogBox Run [InstallFromDirectory]\vfwsetup\setup EndIf DialogBox 225 161 Returns [Number1] BlackOnLightGray UseHeader "What this installer has done." SysMenu ;; Font "Helv" 8 StaticText @xy(8,7) 203 23 "This installer has copied the application M9.EXE to your hard drive into the directory M9 or an alternative of your choice." StaticText @xy(8,30) 203 23 "It has created a file named M9.INI in the same directory." StaticText @xy(8,103) 203 11 "The following has been added to the WIN.INI file:" StaticText @xy(24,114) 203 11 "[AAPLAY Animation]" StaticText @xy(8,44) 203 18 "It has copied a number of files to the Windows/System" StaticText @xy(8,52) 203 18 "directory. If earlier versions of those files existed the earlier" StaticText @xy(8,60) 203 18 "versions have been copied to the directory M9/OLDSYS." StaticText @xy(8,78) 203 22 "A Program Manager group entitled Mission 9 has been created with an icon for the Mission 9 application." StaticText @xy(24,126) 203 11 "FullScreen=AAVGA.DLL" PushButton OKbtn @xy(72,140) 69 15 "OK" 100 EndDialogBox [nInUse] := LastIndexUsedFor [taInUseArray] If [nInUse] > 0 While [nCounter] < [nInUse] [tInUseLine] := Copy [taBackUpName][[nCounter]] To [taInUseArray][[nCounter]] AppendFile [InstallationDirectory]\INUSE.BAT [tInUseLine] EndAppendFile EndWhile Dialog UseHeader "Warning" .lThe following files were being used by another process, .lso they could not be overwritten. They have been renamed .las follows: [taBackUpName] .You may run the batch file INUSE.BAT located in .l[InstallationDirectory]. .lThis batch file will copy the backup files to the .lappropriate names, or you may copy the files .lyourself. EndDIalog EndIf PopUp Installation Complete. EndProcedure Do SetupDisplay :Start DialogBox 225 158 Returns [Number1] BlackOnLightGray UseHeader "Requirements for Mission 9" SysMenu ;; Font "MS Sans Serif" 8 StaticText @xy(8,33) 73 12 "486/33 or above" StaticText @xy(8,44) 73 12 "CD-ROM 2x or above" StaticText @xy(8,55) 73 12 "DOS 5.x or above" StaticText @xy(8,66) 73 12 "Windows 3.1 or above" StaticText @xy(8,78) 122 12 "Sound Card installed for Windows" StaticText @xy(8,89) 162 12 "MSCDEX CD-ROM driver installed for Windows" StaticText @xy(8,100) 162 12 "256 color Video drivers installed for Windows" StaticText @xy(8,7) 210 20 "The following configuration is required for running the Mission 9 software:" StaticText @xy(8,111) 209 15 "Video for Windows runtime 1.1 or above (provided on CD-ROM)" StaticText @xy(8,122) 213 12 "Autodesk Animator Player (provided on CD-ROM)" DefPushButton OKbtn @xy(76,137) 69 15 "OK" 100 EndDialogBox DialogBox 200 100 UseHeader "Installation Menu" Returns [ReturnVal1] BlackOnLightGray ModalFrame Font "Helv" 8 GroupBox @xy(10,4) 180 70 "" RadioButtonGroup Uses [ReturnVal2] RadioButton @xy(15,17) 120 12 "Install Mission 9" RadioButton @xy(15,30) 120 12 "Exit Installation" PushButton @xy(30,80) 40 14 "OK" 1 ;;PushButton @xy(130,80) 40 14 "Help" 8 EndDialogBox Incase [ReturnVal1] Is =8: Dialog UseHeader "OurINSTALL 1.0 Help" .l Choose Install OurINSTALL1.0 to install this product. .l Choose Exit to leave this installation. .c Press <OK> to return to main menu. EndDialog GoTo Start =9: SoLong EndInCase InCase [ReturnVal2] Is =1: Do Install_Files [ReturnVal2] := 2 ;;GoTo Start =2: SoLong EndInCase